#ifndef COMMUNICATIONPROXY_H
#define COMMUNICATIONPROXY_H

#include "communication.h"

#include <QObject>

class CommunicationProxy : public QObject
{
    Q_OBJECT

public:
    explicit CommunicationProxy(QObject *parent = nullptr);

    void setCommunication(Communication *obj);
    Communication *communication() const;

    bool isValid() const;
    void connectToHost(const QString &portName);
    void disconnectFromHost();

private:
    Communication *m_obj;
};

#endif // COMMUNICATIONPROXY_H
